import requests
import json

# 设置请求头参数
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0'
}

url = "https://hr.163.com/api/hr163/position/queryPage"

json_data = {"currentPage": 1, "pageSize": 10}

# 在api载荷中若提交的是json数据，则需要使用json参数，而不是data参数
response = requests.post(url, headers=headers, json=json_data)

print(response.text)
